package com.ymatou.iapi.productmanager.service;

import java.util.Arrays;

import com.ymatou.iapi.productmanager.parameter.UpdateProductCatalogDto;
import com.ymatou.iapi.productmanager.parameter.UpdateProductCatalogsBean;
import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class UpdateProductCatalogsCall  extends YmatouAutoTestCall {
	protected static String opurl ="api/SellerProduct/UpdateProductCatalogs";
	
	public UpdateProductCatalogsCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"POST","JSON");
	}
	
	
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	
	
	public static void main(String args[]){
		UpdateProductCatalogsBean aa = new UpdateProductCatalogsBean();
		UpdateProductCatalogDto bb = new UpdateProductCatalogDto();
		bb.setCatalogId("48b0debf-91df-4e7b-a8af-bcfc6fa9d8ec");
		bb.setUserId(3383);
		bb.setPrice(50);
		aa.setProductID("29e3fbd9-b691-4efb-b4bb-9e3ac44fb81d");
		aa.setUserID(3383);
		aa.setCatalogs(Arrays.asList(bb));
		
		
		
		
		new UpdateProductCatalogsCall().callAndGetReturnData(aa);
	}
	
}
